{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active"><a href="#tab_basic">基础设置</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal form form-validate" id="setting-form">
			<div class="panel panel-default">
				<div class="panel-heading">基础设置</div>
				<div class="panel-body">
					<div class="tab-content">
						<div class="tab-pane active" id="tab_basic">
							<div class="form-group">
								<label class="col-sm-2 control-label">快速入驻图文图片</label>
								<div class="col-sm-8">
									{php echo attachment_select('enterfast', $settings['enterfast']);}
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">绑定二维码图文图片</label>
								<div class="col-sm-8">
									{php echo attachment_select('binding', $settings['binding']);}
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">自动生成商户二维码</label>
								<div class="col-xs-12 col-sm-8">
									<div class="radio radio-success radio-inline" >
										<input type="radio" id="inlineRadio1" name="autostatus" value="0" {if intval($settings['autostatus']) == 0}checked="checked"{/if}>
										<label for="inlineRadio1"> 否</label>
									</div>
									<div class="radio radio-success radio-inline" >
										<input type="radio" id="inlineRadio2" name="autostatus" value="1" {if intval($settings['autostatus']) == 1}checked="checked"{/if}>
										<label for="inlineRadio2"> 是</label>
									</div>
									<span class="help-block">是否自动生成商户二维码，默认不自动生成</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
<script>
$(function () {
		window.optionchanged = false;
		$('#myTab a').click(function (e) {
			e.preventDefault();//阻止a链接的跳转行为
			$(this).tab('show');//显示当前选中的链接及关联的content
		})
	});
</script>
{php include wl_template('common/footer');}